package com.ming.dao;

import com.ming.po.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BusinessDao {

	// 根据分类Id查询商家信息
	@Select("select * from business where orderTypeId=#{orderTypeId}")
	public List<Business> listBusinessByOrderTypeId(Integer orderTypeId);

	// 根据商家Id查询商家信息
	@Select("select * from business where businessId=#{businessId}")
	public Business getBusinessById(Integer businessId);
}
